/**
 * @author Nicolas Latorre (nicolas.latorre@usi.ch)
 * @author Nicolas Zimerman (zimerman@usi.ch)
 */
package ch.usi.inf.pf2.file.interaction;

	public final class Token
	{
	    private final TokenType tokenType;
	    private String text;

	    public Token(TokenType tokenType, String text)
	    {
	        this.tokenType = tokenType;
	        this.text = text;
	    }

	    public void setText(String text)
	    {
	        this.text = text;
	    }
	    
	    public int getStartPosition(int startPosition) {
	        return startPosition;
	    }
	    
	    public TokenType getType() {
	    	return tokenType;
	    }
	    
	    public String getText() {
	    	return text;
	    }
	}


